function ajaxFileUpload(){
		//starting setting some animation when the ajax starts and completes
		$("#loading")
		.ajaxStart(function(){
			$(this).show();
		})
		.ajaxComplete(function(){
			$(this).hide();
		});
		
		/*
			prepareing ajax file upload
			url: the url of script file handling the uploaded files
                        fileElementId: the file type of input element id and it will be the index of  $_FILES Array()
			dataType: it support json, xml
			secureuri:use secure protocol
			success: call back function when the ajax complete
			error: callback function when the ajax failed
			
                */
		$.ajaxFileUpload({
				url:"./upload", 
				secureuri:false,
				fileElementId:'fileChooser',
				dataType: 'xml',
				success: function (data)
				{
					var result = "";
					var url;

					$(data).find('report').each(function() {
						
						url = $(this).find('url').text();
						
						result+= "<input name='EVT_URL' type='hidden' value='"+url+"' />";
												                
					}); // FINE EACH FUNCTION
					
					$(".container").append(result);
					if(url != null) {
						$(".success").append("File caricato correttamente!");
					}
					
					
				}
			});

}